package com.akkainaction.router.pool;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.akkainaction.router.pool.router.MasterRouterActorByConf;
import com.typesafe.config.ConfigFactory;

public class TestMasterRouterActorByConf {

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("sys", ConfigFactory.load("router.conf"));
        ActorRef masterRouterActor = system.actorOf(Props.create(MasterRouterActorByConf.class), "masterRouterActorByConf");
        masterRouterActor.tell("hello A", ActorRef.noSender());
        masterRouterActor.tell("hello B", ActorRef.noSender());
        masterRouterActor.tell("hello C", ActorRef.noSender());
        masterRouterActor.tell("hello D", ActorRef.noSender());
    }
}
